package main

import (
	"gitee.com/imzts/a20240218was/internal/logic"

	pb "gitee.com/imzts/a20240218was"
	_ "trpc.group/trpc-go/trpc-filter/debuglog"
	_ "trpc.group/trpc-go/trpc-filter/recovery"
	_ "trpc.group/trpc-go/trpc-filter/validation"
	trpc "trpc.group/trpc-go/trpc-go"
	"trpc.group/trpc-go/trpc-go/log"
)

func main() {
	s := trpc.NewServer()

	impl, err := logic.NewA20240218WasInterfaceImpl()
	if err != nil {
		panic(err)
	}
	pb.RegisterA20240218WasInterfaceService(s, impl)

	if err := s.Serve(); err != nil {
		log.Fatal(err)
	}
}
